package zigzag.designpattern.state;

public class TcpConnection {
	private TcpStatus status;

	public void open(){
		this.status = new TcpOpen();
		this.status.establish();
		this.status = new TcpListen();
	}
	
	public void close(){
		this.status.exit();
		this.status = new TcpClose();
	}
	public void acknowledge(){
		this.status.acknowledge();
	}

}
